package com.jshop.seckill.mapper;

import com.jshop.seckill.domain.UserAddress;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author muYan
 * @Version 1.0
 * @Since 2021-01-26
 */
@Mapper
public interface AddressMapper {

    int addAddress(UserAddress userAddress);

    List<UserAddress> getAddrByUserId(Integer userId);

    int updateAddress(UserAddress userAddress);

    UserAddress findById(Integer id);

    int deleteById(Integer addressId);

}
